<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
request.setAttribute("basePath", basePath);
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>银行调单首页</title>
</head>
<body>
	<a href="${basePath}/privilege/user/toUserPage.do">userpage</a> </br>
	<a href="${basePath}/privilege/role/toRolePage.do">rolepage</a> </br>
	<a href="${basePath}/privilege/resource/toResourceMangerPage.do">resource</a> </br>
	<a href="${basePath}/privilege/logout.do">exit</a> </br>
		<shiro:hasRole name="admin">  
		    用户[<shiro:principal/>]拥有角色admin<br/>  
		</shiro:hasRole>  
</body>
</html>